package com.kuaimacode.kframework.mybatis.mapper.finance;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kuaimacode.kframework.mybatis.models.finance.AgentAccountDetail;
import com.kuaimacode.kframework.mybatis.models.finance.FinanceQuery;
import com.kuaimacode.kframework.mybatis.models.finance.FinanceTotal;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * @author anzy
 * @date 2019/05/22
 */
public interface AgentAccountDetailMapper extends BaseMapper<AgentAccountDetail> {

    FinanceTotal queryAgentTotal(@Param("agentId")String agentId);


    FinanceTotal querySysTotal(@Param("agentId")String agentId);

    List<AgentAccountDetail> queryAgentDetails(@Param("query") FinanceQuery query);

    List<AgentAccountDetail> queryPlantDetails(@Param("query") FinanceQuery query);




}

